package com.yc.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yc.Result;
import com.yc.entities.BloodSugarPatientInfo;
import com.yc.entities.custom.*;

import java.util.List;

/**
 * <p>
 * 患者信息表 服务类
 * </p>
 *
 * @author kuakha
 * @since 2021-04-12
 */
public interface BloodSugarPatientInfoService extends IService<BloodSugarPatientInfo> {

    int insertPatient(BloodSugarPatientInfo patientInfo);

    List<AppHomePageUserBean> appHomePageAllPatientInfo(BloodSugarPatientInfo bloodSugarPatientInfo);

    List<AppHomePageUserBean> appHomePageConcernsPatientInfo(BloodSugarPatientInfo bloodSugarPatientInfo);

    Result getAllBarcodeInfo(Integer deaId, Integer departmentId, Integer current, Integer size);

    Result getAllDataInfo(CustomDataQueryRequestBean customDataQueryRequestBean);

    Result getAllOutPatientInfo(CustomOutPatientQueryRequestBean customOutPatientQueryRequestBean);

    Result getAllIndexInfo(CustomIndexQueryRequestBean customIndexQueryRequestBean);

    CustomPatientInfoResponseBean getPatientById(Integer id);

    int savePatientInto(CustomPatientSaveRequestBean customPatientSaveRequestBean);

    Result getIndexUserBloodGlucoseInfo(Integer id, Integer current, Integer size,String startTime,String endTime);

    BloodSugarPatientInfo getBloodSugarPatientInfoByType(String toHospitalNum, String phone, String bedNum, String departmentId,String doctorId);

    Result getIndexUserOutInHospitalRecord(String hospitalNum,Integer current, Integer size);

    int updatePatientOutHospital(Integer id,Double outSugarNum);

    Result getIndexUserBloodGlucoseDetail(Integer id, String time, String attr);

    Result getDataUserLineChartInfo(Integer id, String startTime, String endTime);

    List<AppHomePageUserBean> appHomePageToBeMeasuredInfo(BloodSugarPatientInfo bloodSugarPatientInfo);

    List<AppHomePageUserBean> abnormalDataByUser(BloodSugarPatientInfo bloodSugarPatientInfo);
}
